package com.example.mvvm.http;

import com.example.mvvm.base.ResponseMode;
import com.example.mvvm.mode.ArticleMode;
import com.example.mvvm.mode.LookVideoMode;

import io.reactivex.rxjava3.core.Observable;
import retrofit2.http.GET;
import retrofit2.http.Header;
import retrofit2.http.Path;
import retrofit2.http.Query;

public interface RetrofitApi {

    @GET("article/list/{curPage}/json")
    Observable<ResponseMode<ArticleMode>> getHome(@Path("curPage") int curPage);

    @GET("/api/look/shuaVideo")
    Observable<ResponseMode<LookVideoMode>> getMomentVideoDetail(@Header("token") String token, @Query("look_id") int id, @Query("way") int way);





}
